#!/usr/bin/env python3
# encoding: utf-8

"""
@version: 1.0
@author: 周永波
@file: cache.py
@time: 2020/8/21 10:45
"""
from flask import session


class CacheUtils:

    @staticmethod
    def get_val(key=None):
        return session.get(key)

    @staticmethod
    def set_val(key=None, value=None):

        session[key] = value